﻿@model IEnumerable<CongressVote.Models.Subject>
@{
    ViewBag.Title = "ViewAllSubjectForRepresentative";
}

<h2>ViewAllSubjectForRepresentative</h2>

@foreach (var item in Model) 
{
    
    <fieldset>
        <legend>@Html.LabelFor(m=>item.title)</legend>
        <div>    
           
            
           <p>@Html.DisplayFor(modelItem => item.content)</p> 
            @using (Html.BeginForm())  {
                 <input type="text" value="@item.id" name="id" hidden="hidden" />
                  <p> if you have the same subject make vote </p>
                   
                <input type="submit" value="save" name="hossam" onmousedown="hossam()"  />
                
            }            
        </div>
    
    </fieldset>
         


}